package com.ht.baselibs.manager;

import com.ht.baselibs.api.BaseLibApi;
import com.ht.baselibs.retrofit.RequestUtils;

/**
 * Created by huangtao on 16/7/6.
 */
public class BaseLibApiManager {
    private static BaseLibApi api;

    public static BaseLibApi getApi(){
        if (api == null){
            synchronized (BaseLibApiManager.class){
                if (api == null){
                    api = (BaseLibApi) RequestUtils.getInstance().create(BaseLibApi.class);
                }
            }
        }
        return api;
    }
}